package com.sign2024.sign2024core.entry.projectservice;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentRowHeight;
import com.alibaba.excel.annotation.write.style.HeadRowHeight;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * 专家专业与标段对应关系表
 *
 * @author yujie
 * @data 2024/8/1 9:13
 */
@ApiModel("专家专业与标段对应关系")
@Data
@HeadRowHeight(value = 30) // 头部行高
@ContentRowHeight(value = 25) // 内容行高
@ColumnWidth(value = 20) // 列宽, 可以作用在类或字段上
public class SpecialtySignRelation {

    @ExcelIgnore
    @ApiModelProperty("id")
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 物料编码
     */
    @ApiModelProperty("物料编码")
    @ExcelProperty(value = "新物料+扩展")
    private String materialCode;

    /**
     * 物料描述
     */
//    @ExcelIgnore
    @ApiModelProperty("物料描述")
    @ColumnWidth(value = 50)
    @ExcelProperty(value = "物料描述")
    private String materialDescribe;

    /**
     * 扩展描述
     */
//    @ExcelIgnore
    @ApiModelProperty("扩展描述")
    @ColumnWidth(value = 50)
    @ExcelProperty(value = "扩展描述")
    private String extendDescribe;

    /**
     * 评标专业1
     */
    @ApiModelProperty("专家专业1")
    @ColumnWidth(value = 30)
    @ExcelProperty(value = "专家专业1")
    private String signMajorOne;

    /**
     * 评标专业2
     */
    @ApiModelProperty("专家专业2")
    @ColumnWidth(value = 30)
    @ExcelProperty(value = "专家专业2")
    private String signMajorTwo;

    /**
     * 评标专业3
     */
    @ApiModelProperty("专家专业3")
    @ColumnWidth(value = 30)
    @ExcelProperty(value = "专家专业3")
    private String signMajorThree;

    /**
     * 评标专业4
     */
    @ApiModelProperty("专家专业4")
    @ColumnWidth(value = 30)
    @ExcelProperty(value = "专家专业4")
    private String signMajorFour;

    /**
     * 创建时间
     */
    @ExcelIgnore
    @ApiModelProperty("创建时间")
//    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    /**
     * 更新时间
     */
    @ExcelIgnore
    @ApiModelProperty("更新时间")
//    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;
}
